﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HouseDistrictGrid.aspx.cs" Inherits="FantastPlatform.Community.UI.InfoCollection.HouseDistrictGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript">
         var hdg = new FantastPlatform.UI.HouseDistrictGrid({
             renderTo: 'hdg_div',
             url: '../Service/HouseDistrictService.aspx?Action=Search',
             border: false,
             width: tabs.getInnerWidth() - 2,
             height: tabs.getInnerHeight() - 2,
             tbar: [{
                 text: '新增小区/院落信息',
                 iconCls: 'add',
                 tooltip: {
                     text: '新增小区/院落信息',
                     title: '新增小区/院落信息',
                     autoHide: true
                 },
                 handler: function () { hdg.onAddHouseDistrictGridClick(); }
             }, '-', {
                 text: '编辑',
                 iconCls: 'edit',
                 tooltip: {
                     text: '选择要编辑的小区/院落信息',
                     title: '编辑小区/院落信息',
                     autoHide: true
                 },
                 handler: function () { hdg.onEditHouseDistrictGridClick(); }
             }, '-', {
                 text: '删除',
                 iconCls: 'delete',
                 tooltip: {
                     text: '删除选中的小区/院落信息',
                     title: '删除小区/院落信息',
                     autoHide: true
                 },
                 handler: function () { hdg.onDeleteHouseDistrictGridClick(); }
             }, '-', {
                 text: '查询',
                 iconCls: 'search',
                 tooltip: {
                     text: '按照条件查小区/院落信息',
                     title: '查询小区/院落信息',
                     autoHide: true
                 },
                 handler: function () { hdg.onSearchClick(); }
             }, '-', {
                 text: '刷新',
                 iconCls: 'updata',
                 tooltip: {
                     text: '重新更新列表内容',
                     title: '列表刷新',
                     autoHide: true
                 },
                 handler: function () { hdg.onUpdataHouseDistrictGridClick(); }
             }, '-', {
                    text: '图片',
                    iconCls: 'edit',
                    tooltip: {
                        text: '编辑商业店铺图片',
                        title: '编辑商业店铺图片',
                        autoHide: true
                    },
                    handler: function () { hdg.onHouseDistrictImageClick(); }
             }]
         });
         hdg.addListener('rowdblclick', function () { hdg.onEditHouseDistrictGridClick(); });
         hdg.onUpdataHouseDistrictGridClick();
    </script>
</head>
<body>
    <div id="hdg_div">
    
    </div>
</body>
</html>
